import java.util.LinkedList;
import java.util.Queue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Gao zhao xu
 * Date: 2023-10-12
 * Time: 19:20
 */
public class test1 {
    public static void main(String[] args) {
        MyQueue queue = new MyQueue();
        System.out.println("1.===========================");
        //如队列
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.show();
        System.out.println("2.===========================");
        //出队列
        System.out.println(queue.poll());
        queue.show();
        System.out.println("3.===========================");
        //获取队列顶层元素，与栈一致
        System.out.println(queue.peek());
        queue.show();
        System.out.println("4.===========================");
        //判空
        System.out.println(queue.empty());
        System.out.println("5.===========================");
        System.out.println(queue.getSize());
        System.out.println("6.===========================");
    }
}
